<html>
<head><meta charset="utf-8"><title>file too small to be an archive · t-compiler/arm · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/index.html">t-compiler/arm</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html">file too small to be an archive</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="225294524"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225294524" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Walther <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225294524">(Feb 05 2021 at 12:53)</a>:</h4>
<p>Hi! <span aria-label="wave" class="emoji emoji-1f44b" role="img" title="wave">:wave:</span><br>
 rust repo at <code>9e5d58fb420a487ae30f38141eccdc8d79fb8d58</code>,  M1 mac mini, I get the following:</p>
<div class="codehilite"><pre><span></span><code>./x.py build
Updating only changed submodules
Submodules updated in 0.06 seconds
    Finished dev [unoptimized + debuginfo] target(s) in 0.15s
Building stage0 std artifacts (aarch64-apple-darwin -&gt; aarch64-apple-darwin)
    Finished release [optimized] target(s) in 0.08s
Copying stage0 std from stage0 (aarch64-apple-darwin -&gt; aarch64-apple-darwin / aarch64-apple-darwin)
Building stage0 compiler artifacts (aarch64-apple-darwin -&gt; aarch64-apple-darwin)
   Compiling rustc_llvm v0.0.0 (/Users/walther/git/rust/compiler/rustc_llvm)
   Compiling rustc_lint v0.0.0 (/Users/walther/git/rust/compiler/rustc_lint)
   Compiling rustc_typeck v0.0.0 (/Users/walther/git/rust/compiler/rustc_typeck)
   Compiling rustc_traits v0.0.0 (/Users/walther/git/rust/compiler/rustc_traits)
   Compiling rustc_mir v0.0.0 (/Users/walther/git/rust/compiler/rustc_mir)
   Compiling rustc_passes v0.0.0 (/Users/walther/git/rust/compiler/rustc_passes)
   Compiling rustc_ty_utils v0.0.0 (/Users/walther/git/rust/compiler/rustc_ty_utils)
   Compiling rustc_mir_build v0.0.0 (/Users/walther/git/rust/compiler/rustc_mir_build)
error: failed to add native library /Users/walther/git/rust/build/aarch64-apple-darwin/llvm/build/lib/libLLVMX86Disassembler.a: file too small to be an archive

error: aborting due to previous error

error: could not compile `rustc_llvm`
</code></pre></div>
<p>Decided to ask here before posting an issue, in case this is something known / if a workaround exists already</p>



<a name="225294714"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225294714" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225294714">(Feb 05 2021 at 12:55)</a>:</h4>
<blockquote>
<p>error: failed to add native library /Users/walther/git/rust/build/aarch64-apple-darwin/llvm/build/lib/libLLVMX86Disassembler.a: file too small to be an archive</p>
</blockquote>
<p>I am curious how big that file is. And if it is less than a few hundred bytes what the actual contents are. (hexdump?)</p>



<a name="225294927"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225294927" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225294927">(Feb 05 2021 at 12:56)</a>:</h4>
<p>I found <a href="https://github.com/rust-lang/rust/issues/50220">https://github.com/rust-lang/rust/issues/50220</a> which is from way before M1, but also on macOS.</p>



<a name="225295016"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225295016" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225295016">(Feb 05 2021 at 12:57)</a>:</h4>
<p>According to the issue description it worked when re-installing LLVM to not be a universal binary.</p>



<a name="225295117"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225295117" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Walther <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225295117">(Feb 05 2021 at 12:58)</a>:</h4>
<p><code>-rw-r--r--  1 walther  staff   3.2M Feb  5 14:08 build/aarch64-apple-darwin/llvm/build/lib/libLLVMX86Disassembler.a</code><br>
no idea how large it should be or what the contents should be</p>



<a name="225296650"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225296650" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225296650">(Feb 05 2021 at 13:16)</a>:</h4>
<blockquote>
<p>According to the issue description it worked when re-installing LLVM to not be a universal binary.</p>
</blockquote>
<p>Did you configure it to use an already existing LLVM installation or did you leave it to build it for you? If you are using an existing LLVM installation, this is likely the issue. If you left it at the default, I unfortunately can't help you.</p>



<a name="225296968"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225296968" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Walther <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225296968">(Feb 05 2021 at 13:18)</a>:</h4>
<p>I let it build llvm from scratch, as is the default for the repo. Took about 30min to compile llvm, it seems like at least parts of it were running x86_64 / rosetta2 instead of natively on aarch64</p>



<a name="225305088"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225305088" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225305088">(Feb 05 2021 at 14:32)</a>:</h4>
<p>Llvms archiver does not support universal archives.</p>



<a name="225305332"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225305332" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225305332">(Feb 05 2021 at 14:34)</a>:</h4>
<p>You should probably file an issue if you're building from scratch but also would help making sure it's not a setup problem, and something more generally applicable.</p>



<a name="225305670"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225305670" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Walther <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225305670">(Feb 05 2021 at 14:36)</a>:</h4>
<p>thanks! filed an issue here <a href="https://github.com/rust-lang/rust/issues/81790">https://github.com/rust-lang/rust/issues/81790</a></p>



<a name="225306142"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225306142" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225306142">(Feb 05 2021 at 14:41)</a>:</h4>
<p>You mentioned rosetta. Can you confirm you're in a native emulator/shell/python/etc</p>



<a name="225369375"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225369375" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Walther <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225369375">(Feb 05 2021 at 22:59)</a>:</h4>
<p>well yes and no - rosetta isn't a fully separate environment to be in, if you call executables that run with rosetta then those get run in those. i did my best to run everything as aarch64 though, and even the llvm compilation step logs _say_ it was building it for aarch64, but when looking at Activity Monitor there definitely were _some_ <code>cmake</code> processes running with architecture:Intel while others were running with architecture:Apple</p>



<a name="225369828"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225369828" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225369828">(Feb 05 2021 at 23:04)</a>:</h4>
<p>well yeah,, we've seen some other problems happening because there was rosetta _somewhere_ in the process stack, often unintentionally.</p>



<a name="225369853"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225369853" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225369853">(Feb 05 2021 at 23:04)</a>:</h4>
<p>So this is one of those things to rule out as a potential problem.</p>



<a name="225369901"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225369901" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Walther <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225369901">(Feb 05 2021 at 23:05)</a>:</h4>
<p>sure - but there's not really a way to be in a "fully non-rosetta environment" outside of completely uninstalling it. afaiu it's not like virtualenv or similar where you are either in it or not</p>



<a name="225369980"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225369980" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Walther <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225369980">(Feb 05 2021 at 23:06)</a>:</h4>
<p>would be nice if it was possible to run <code>x.py build</code> even on a computer that does happen to have rosetta installed - and if you're targeting an aarch64 build, it should utilize the native things</p>



<a name="225370041"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225370041" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225370041">(Feb 05 2021 at 23:07)</a>:</h4>
<p>well, if macos decides that it needs to run <code>cmake</code> under rosetta because cmake was installed as a x86_64 binary, then there's very little bootstrap can do to mitigate this.</p>



<a name="225370197"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225370197" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225370197">(Feb 05 2021 at 23:08)</a>:</h4>
<p>(as for shell/terminal emulator/python same thing holds, since those are entirely outside of the control of bootstrap or its scripts). To elaborate what problems we've seen in the past due to rosetta: people would run an x86-64 terminal emulator (say, iterm2). Things run from the emulator would run natively and fine, but for whatever reason the binaries built by rustc/cargo would fail signature checks and get sigkilled at startup.</p>



<a name="225370331"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225370331" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225370331">(Feb 05 2021 at 23:10)</a>:</h4>
<p><span class="user-mention" data-user-id="116155">@Jake Goulding</span> have you had success building rustc on m1 or that preview device recently?</p>



<a name="225370352"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225370352" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Walther <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225370352">(Feb 05 2021 at 23:10)</a>:</h4>
<div class="codehilite"><pre><span></span><code>file /opt/homebrew/bin/cmake
/opt/homebrew/bin/cmake: Mach-O 64-bit executable arm64
</code></pre></div>
<p>cmake <em>should</em> be arm64 version (i think)</p>



<a name="225370395"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225370395" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225370395">(Feb 05 2021 at 23:11)</a>:</h4>
<p>yeah I meant to give it as an example only, not to imply that cmake on your system is wrong.</p>



<a name="225370618"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225370618" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Walther <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225370618">(Feb 05 2021 at 23:14)</a>:</h4>
<p>sure :) happy to try and help debug this in any which way i can, in order to hopefully make this easier for other people in the future as well. happened to get a m1 for work purposes, and obviously wanted to try some rust on it too :D</p>



<a name="225373151"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225373151" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Walther <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225373151">(Feb 05 2021 at 23:50)</a>:</h4>
<blockquote>
<p>(say, iterm2)</p>
</blockquote>
<p>aha, interesting! i now ran the same thing from apple's own Terminal instead of from Alacritty and the build completed. how weird. Thank you for that hint!</p>
<p><code>arch -arm64 ./x.py build</code> shoouuuuld (?) work even in another terminal though, right? it <em>should</em> be setting the preference for aarch as opposed to x86 for everything relevant</p>



<a name="225376056"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225376056" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225376056">(Feb 06 2021 at 00:29)</a>:</h4>
<p>If <code>arch -arm64</code> breaks the chain for rosetta, then it would be an interesting thing to add, because we can definitely do at least that.</p>



<a name="225380311"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225380311" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225380311">(Feb 06 2021 at 02:03)</a>:</h4>
<p><span class="user-mention silent" data-user-id="123586">nagisa</span> <a href="#narrow/stream/242906-t-compiler.2Farm/topic/file.20too.20small.20to.20be.20an.20archive/near/225370331">said</a>:</p>
<blockquote>
<p><span class="user-mention silent" data-user-id="116155">Jake Goulding</span> have you had success building rustc on m1 or that preview device recently?</p>
</blockquote>
<p>No, should I?</p>



<a name="225380378"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225380378" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225380378">(Feb 06 2021 at 02:04)</a>:</h4>
<p><a href="https://stackoverflow.com/q/64830635/155423">https://stackoverflow.com/q/64830635/155423</a></p>
<p><a href="https://stackoverflow.com/q/64830671/155423">https://stackoverflow.com/q/64830671/155423</a></p>



<a name="225380417"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225380417" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225380417">(Feb 06 2021 at 02:05)</a>:</h4>
<p><a href="https://github.com/shepmaster/rust/blob/silicon/silicon/README.md">https://github.com/shepmaster/rust/blob/silicon/silicon/README.md</a></p>
<blockquote>
<p>The current macOS cc executables have a problem with codesigning when run under Rosetta2 on aarch64 hardware. This can occur if anything in the process chain is x86_64 (including but not limited to: your terminal emulator, the shell, rustup, cargo, rustc).</p>
</blockquote>
<blockquote>
<p>You can usually work around this through some clever use of environment variables or intermediate shell scripts. For example, if your rustup is still a x86_64 binary (see file $(which rustup) to check) you can directly invoke cargo / rustc, avoiding rustup:</p>
</blockquote>



<a name="225403282"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/file%20too%20small%20to%20be%20an%20archive/near/225403282" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Walther <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/file.20too.20small.20to.20be.20an.20archive.html#225403282">(Feb 06 2021 at 10:39)</a>:</h4>
<p>Thanks!</p>
<p>It seems like running the build under <code>Alacritty</code> which was <code>x86_64</code> was enough to make some of the calls in the build process use that architecture instead of <code>aarch64</code> - even when running with <code>arch -arm64 ./x.py build</code>, and even when it seemed like <code>llvm</code> and others were built for <code>aarch64</code>.</p>
<p>When running from a Terminal, I was able to run both <code>./x.py build</code> and <code>./x.py test</code> to completion, tested at commit <code>cfba499271ba53190a1d3647ff8f7202ec9ed6f5</code></p>
<p>I added all this context to the issue. Not sure if it should be just closed, or if there's something that could be done to improve the experience / make the build more deterministic (if you tell it to build arm, actually build arm, instead of ending up in a mix of arm and x86 files, just because your terminal emulator happened to be non-native)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>